#ifndef READVIDEOTHREAD_H
#define READVIDEOTHREAD_H

#include <QtCore/QThread>

class Video;
class QTimer;
class IpcClient;

class ReadVideoThread : public QThread
{
	Q_OBJECT
public:
	ReadVideoThread(Video *video, QObject *parent = 0);

	void run();

signals:
	void gotNewFrame();

public slots:
	void startRead();
	void pauseRead();
	void stopRead();
	void setIpcClient(IpcClient *client);

private slots:
	void readFrame();

private:
	Video *mVideo;
	QTimer *mReadTimer;
	IpcClient *mIpcClient;
};

#endif // READVIDEOTHREAD_H
